import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import { store, key } from '@/store'

import '@/styles/index.scss' // 全局css
import 'amfe-flexible' // 自动设置 rem基准值（html标签字体大小）

import './permission' // 路由守卫控制器

import Particles from 'particles.vue3'
import Directive from '@/directive/permission'

createApp(App)
  .use(router)
  .use(store, key)
  .use(Particles)
  .use(Directive)
  .mount('#app')
